package com.sc.nft.controller.request;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sc.nft.enums.ProductTypeEnum;
import com.sc.nft.enums.task.ActivityTypeEnum;
import com.sc.nft.sup.PageRequest;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
public class ProductRequest extends PageRequest {
    @ApiModelProperty("daoId")
    private Long daoId;
    @ApiModelProperty("分类Id")
    private Long categoryId;
    @ApiModelProperty("活动类型")
    private ActivityTypeEnum activityType;
    @ApiModelProperty("商品类型")
    private ProductTypeEnum productType;
    @ApiModelProperty("商品名称")
    private String productName;
    @ApiModelProperty("是否是Saas")
    private Boolean isSaas = false;
    @ApiModelProperty("是否是小程序商品")
    private Boolean showMiniMall;


    public Page getPage() {
        return new Page(getPageNo(), getPageSize());
    }

}
